
function route(handle,pathname,request, response) {

    if(typeof handle[pathname]==='function'){   
         return handle[pathname](request, response);
     }else{   
         console.log("No request handler found for "+pathname);   
         return "404 Not Found";   
     } 
}

exports.route = route;